import request from '@/util/request'

export default {

    //查询order列表

    pageQuery() {
        return request({
            url: `/order/list`,
            method: 'get',
        })
    },


    //添加order

    add(data){
        return request({
            url: `/order/add`,
            method: 'post',
            data
        })
    },

    //删除order

    delete(ids){
        return request({
            url:`/order/delete/${ids}`,
            method:"delete"
        })
    },

//修改order
    update(data){
        return request({
            url: `/order/update`,
            method: 'post',
            data
        })
    },
}